package com.baidu.dao;

import jpersist.DatabaseManager;

public class Connection {
	public static DatabaseManager getDatabaseManager() {

		DatabaseManager dbm = DatabaseManager
				.getUrlDefinedDatabaseManager(
						"jpersist_mysql",
						10,
						"com.mysql.jdbc.Driver",
						"jdbc:mysql://localhost:3306/lottery?useUnicode=true&characterEncoding=gbk",
						null, null, "root", "root");

		return dbm;
	}
}
